<template>
  <div id="app">
    <van-skeleton title :row="3" v-if="isShow"/>
    <router-view v-else></router-view>
  </div>
</template>

<script setup>
import { ref,watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
const router = useRouter()
const route = useRoute()
let isShow=ref(true)

watch(route, (newValue, oldValue) => {
  isShow.value=true
  setTimeout(()=>{
  isShow.value=false
},1000)
})


</script>

<style lang="scss" scoped></style>